package com.itheima.genericity_demo.genericity_class;

public class Person<E> {
    private E hobby;// 爱好

    public E getHobby() {
        return hobby;
    }

    public void setHobby(E hobby) {
        this.hobby = hobby;
    }
}

class Swim{}
class PingPang{}
class BasketBall {}
